﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Admin_User.aspx.cs" Inherits="V5_EShop.Admin.GZProductUser.Admin_User" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <%=V5.Load.LoadAdminHeader(this) %>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table width="100%" border="0" cellpadding="2" cellspacing="1" class="tablelist">
            <tr>
                <td class="headertext">
                    <div align="left">
                        位置导航：<a class="list_link" href="../../Admin_Index_Main.aspx" target="main">首页</a>
                        用户管理</div>
                </td>
            </tr>
            <tr>
                <td>
                    <a href="?">管理首页</a> | <a href="?Action=edit">添加用户</a>
                </td>
            </tr>
        </table>
        <asp:MultiView ID="MultiViewList" runat="server" ActiveViewIndex="0">
            <asp:View ID="View1" runat="server">
                <asp:GridView ID="gvList" runat="server" AutoGenerateColumns="False" GridLines="None"
                    OnRowCommand="gvList_RowCommand" CssClass="tablelist overlist">
                    <Columns>
                        <asp:TemplateField HeaderText="选择" HeaderStyle-Width="30px" HeaderStyle-CssClass="headertext">
                            <ItemTemplate>
                                <asp:CheckBox ID="chkitem" runat="server" />
                                <asp:HiddenField ID="hfID" runat="server" Value='<%#Eval("ID") %>' />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="CustomNo" HeaderText="客户编码"></asp:BoundField>
                        <asp:BoundField DataField="CustomName" HeaderText="客户名称"></asp:BoundField>
                        <asp:TemplateField HeaderText="操作">
                            <ItemTemplate>
                                <asp:LinkButton ID="LinkButton1" runat="server" CommandArgument='<%#Eval("ID") %>'
                                    CommandName="go">修改</asp:LinkButton>
                                <asp:LinkButton ID="LinkButton2" runat="server" CommandArgument='<%#Eval("ID") %>' OnClientClick="return confirm('你确认删除该条记录吗'); "
                                    CommandName="del">删除</asp:LinkButton>
                            </ItemTemplate>
                            <ItemStyle Width="150px" />
                        </asp:TemplateField>
                    </Columns>
                    <HeaderStyle CssClass="headertext" />
                </asp:GridView>
                <webdiyer:AspNetPager ID="Pager" runat="server" CustomInfoHTML="共%PageCount%页，当前为第%CurrentPageIndex%页，每页%PageSize%条"
                    FirstPageText="首页" HorizontalAlign="Right" LastPageText="尾页" NextPageText="下一页"
                    OnPageChanged="Pager_PageChanged" PageIndexBoxType="DropDownList" PageSize="20"
                    PrevPageText="上一页" ShowCustomInfoSection="Left" ShowPageIndexBox="Always" SubmitButtonText="Go"
                    TextAfterPageIndexBox="页" TextBeforePageIndexBox="转到" AlwaysShow="True" Width="100%">
                </webdiyer:AspNetPager>
            </asp:View>
            <asp:View ID="View2" runat="server">
                <table cellpadding="5" cellspacing="1" class="tablelist">
                    <tr>
                        <td colspan="2" class="headertext">
                            <asp:Label ID="lblTitle" runat="server" Text="添加用户"></asp:Label>
                        </td>
                        <td class="headertext">
                            &nbsp;
                        </td>
                        <td class="headertext">
                            &nbsp;
                        </td>
                        <td class="headertext">
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 15%;">
                            客户编码:
                        </td>
                        <td style="width: 30%;">
                            <asp:TextBox ID="txtCustomNo" runat="server"></asp:TextBox>
                        </td>
                        <td style="width: 15%;">
                            税金号:
                        </td>
                        <td style="width: 30%;">
                            <asp:TextBox ID="txtTaxNo" runat="server"></asp:TextBox>
                        </td>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td>
                            客户名称:
                        </td>
                        <td>
                            <asp:TextBox ID="txtCustomName" runat="server"></asp:TextBox>
                        </td>
                        <td>
                            开户帐号:
                        </td>
                        <td>
                            <asp:TextBox ID="txtBankNo" runat="server"></asp:TextBox>
                        </td>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td>
                            简称:
                        </td>
                        <td>
                            <asp:TextBox ID="txtCustomShortName" runat="server"></asp:TextBox>
                        </td>
                        <td>
                            开户银行:
                        </td>
                        <td>
                            <asp:TextBox ID="txtBank" runat="server"></asp:TextBox>
                        </td>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td>
                            拼音码:
                        </td>
                        <td>
                            <asp:TextBox ID="txtCustomShortCutName" runat="server"></asp:TextBox>
                        </td>
                        <td>
                            会员卡号:
                        </td>
                        <td>
                            <asp:TextBox ID="txtCardNo" runat="server"></asp:TextBox>
                        </td>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td>
                            类别:
                        </td>
                        <td>
                            <asp:DropDownList ID="ddlCustomTypeID" runat="server">
                            </asp:DropDownList>
                        </td>
                        <td>
                            现存积分:
                        </td>
                        <td>
                            <asp:TextBox ID="txtExistingIntegral" runat="server"></asp:TextBox>
                        </td>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td>
                            折扣:
                        </td>
                        <td>
                            <asp:TextBox ID="txtDiscount" runat="server"></asp:TextBox>
                        </td>
                        <td>
                            消费积分:
                        </td>
                        <td>
                            <asp:TextBox ID="txtConsumptionIntegral" runat="server"></asp:TextBox>
                        </td>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td>
                            地址:
                        </td>
                        <td>
                            <asp:TextBox ID="txtAddress" runat="server"></asp:TextBox>
                        </td>
                        <td>
                            剩余积分:
                        </td>
                        <td>
                            <asp:TextBox ID="txtResidualIntegral" runat="server"></asp:TextBox>
                        </td>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td>
                            邮政编码:
                        </td>
                        <td>
                            <asp:TextBox ID="txtPostalCode" runat="server"></asp:TextBox>
                        </td>
                        <td>
                            信用额度:
                        </td>
                        <td>
                            <asp:TextBox ID="txtCreditMoney" runat="server"></asp:TextBox>
                        </td>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td>
                            手机:
                        </td>
                        <td>
                            <asp:TextBox ID="txtMobilePhone" runat="server"></asp:TextBox>
                        </td>
                        <td>
                            是否使用信用额度:
                        </td>
                        <td>
                            <asp:CheckBox ID="chkIsUseCredit" runat="server" />
                        </td>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td>
                            电话:
                        </td>
                        <td>
                            <asp:TextBox ID="txtTelePhone" runat="server"></asp:TextBox>
                        </td>
                        <td>
                            信用日期:
                        </td>
                        <td>
                            <asp:TextBox ID="txtCreditDay" runat="server" ></asp:TextBox>
                        </td>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td>
                            传真:
                        </td>
                        <td>
                            <asp:TextBox ID="txtFaxNo" runat="server"></asp:TextBox>
                        </td>
                        <td>
                            信用开始日期:
                        </td>
                        <td>
                            <asp:TextBox ID="txtCreditStartDate" runat="server" CssClass="Wdate" onFocus="showDateTime();"></asp:TextBox>
                        </td>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Email:
                        </td>
                        <td>
                            <asp:TextBox ID="txtEmail" runat="server"></asp:TextBox>
                        </td>
                        <td>
                            信用结束日期:
                        </td>
                        <td>
                            <asp:TextBox ID="txtCreditEndDate" runat="server"  CssClass="Wdate" onFocus="showDateTime();"></asp:TextBox>
                        </td>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td>
                            网址:
                        </td>
                        <td>
                            <asp:TextBox ID="txtWebsite" runat="server"></asp:TextBox>
                        </td>
                        <td>
                            预收余额:
                        </td>
                        <td>
                            <asp:TextBox ID="txtAdvanceLastMoney" runat="server"></asp:TextBox>
                        </td>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td>
                            联系人:
                        </td>
                        <td>
                            <asp:TextBox ID="txtLinkMan" runat="server"></asp:TextBox>
                        </td>
                        <td>
                            密码:
                        </td>
                        <td>
                            <asp:TextBox ID="txtPwd" runat="server" TextMode="Password"></asp:TextBox>
                        </td>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td>
                            性别:
                        </td>
                        <td>
                            <asp:TextBox ID="txtSex" runat="server"></asp:TextBox>
                        </td>
                        <td>
                            是否发送短信:
                        </td>
                        <td>
                            <asp:CheckBox ID="chkIsSMS" runat="server" />
                        </td>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td>
                            生日:
                        </td>
                        <td>
                            <asp:TextBox ID="txtBirthday" runat="server" CssClass="Wdate" onFocus="showDateTime();"></asp:TextBox>
                        </td>
                        <td>
                            业务员:
                        </td>
                        <td>
                            <asp:TextBox ID="txtCreateDate" runat="server"></asp:TextBox>
                        </td>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td>
                            是否显示:
                        </td>
                        <td>
                            <asp:DropDownList ID="ddlDisable" runat="server">
                                <asp:ListItem Text="显示" Value="1"></asp:ListItem>
                                <asp:ListItem Text="禁用" Value="0"></asp:ListItem>
                            </asp:DropDownList>
                        </td>
                        <td>
                            创建日期:
                        </td>
                        <td>
                            <asp:TextBox ID="txtSellerID0" runat="server" CssClass="Wdate" onFocus="showDateTime();"></asp:TextBox>
                        </td>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td>
                            备注:
                        </td>
                        <td>
                            <asp:TextBox ID="txtRemark" runat="server"></asp:TextBox>
                        </td>
                        <td>
                            客户销售价格：
                        </td>
                        <td>
                            <asp:DropDownList ID="ddlPriceSet" runat="server">
                                <asp:ListItem Text="销售价1" Value="1"></asp:ListItem>
                                <asp:ListItem Text="销售价2" Value="2"></asp:ListItem>
                                <asp:ListItem Text="销售价3" Value="3"></asp:ListItem>
                                <asp:ListItem Text="销售价4" Value="4"></asp:ListItem>
                                <asp:ListItem Text="客户价格表" Value="5"></asp:ListItem>
                            </asp:DropDownList>
                        </td>
                        <td>
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td align="center" colspan="2">
                            <asp:HiddenField ID="hfID" runat="server" Value="0" />
                            <asp:Button ID="btnSave" runat="server" OnClick="btnSave_Click" Text="添加保存" OnClientClick="return fromChk();" CssClass="ds-btn ds-btn-ok" />
                        </td>
                        <td align="center">
                            &nbsp;
                        </td>
                        <td align="center">
                            &nbsp;
                        </td>
                        <td align="center">
                            &nbsp;
                        </td>
                    </tr>
                </table>
                <!--
                <asp:TextBox ID="txtAccountReceivable" runat="server" Text="0"></asp:TextBox>
                <asp:TextBox ID="txtFirstAccountReceivable" runat="server" Text="0"></asp:TextBox>
                <asp:TextBox ID="txtSellerID" runat="server" Text="0"></asp:TextBox>
                <asp:TextBox ID="txtRecommendedID" runat="server" Text="0"></asp:TextBox>
                <asp:TextBox ID="txtCustomSaleType" runat="server" Text="0"></asp:TextBox>
                <asp:TextBox ID="txtPOINT" runat="server" Text="0"></asp:TextBox>-->
            </asp:View>
        </asp:MultiView>
    </div>
    </form>
</body>
</html>
<script>
    var fromChk = function () {
        var t = $("#txtPwd").val();
        if ($.trim(t) == "") {
            alert("请先输入密码！");
            $("#txtPwd").focus();
            return false;
        }

        return true;
    }

</script>